package never

import org.apache.spark.sql.{DataFrame, SQLContext}
import org.apache.spark.{SparkConf, SparkContext}

object AdvertisingParquetDemo {

    def main(args: Array[String]): Unit = {

    val conf = new SparkConf().setAppName("AdvertisingParquetDemo").setMaster("local[*]")

    val sc: SparkContext = new SparkContext(conf)

    val sQLContext = new SQLContext(sc)

    val parquet: DataFrame = sQLContext.read.parquet("D:\\java-items\\广告平台\\广告平台-1\\parquet")

    parquet.show()

    sc.stop()

  }

}
